<?php

declare (strict_types=1);
namespace App\Model;

use Hyperf\DbConnection\Model\Model;
/**
 * @property int $id 
 * @property string $name 文件名
 * @property string $path 文件路径
 * @property string $dir 存放路径
 * @property string $oss_key 阿里云osskey
 * @property string $extension 文件类型
 * @property int $size 文件大小
 * @property \Carbon\Carbon $created_at 添加时间
 * @property \Carbon\Carbon $updated_at 更新时间
 * @property int $status 状态
 * @property int $path_type 附件存放位置 1本地 2oss
 * @property int $create_time 新增时间
 * @property string $file_hash 附件hsah值
 * @property int $type 0未知 1好友头像 2运营号头像
 */
class Avatar extends Model
{
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'avatar';
    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = ['id', 'name', 'path', 'dir', 'oss_key', 'extension', 'size', 'created_at', 'updated_at', 'status', 'path_type', 'create_time', 'file_hash', 'type'];
    /**
     * The attributes that should be cast to native types.
     *
     * @var array
     */
    protected $casts = ['id' => 'integer', 'size' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime', 'status' => 'integer', 'path_type' => 'integer', 'create_time' => 'integer', 'type' => 'integer'];
}